package com.graduation.util;

import java.util.Objects;

public class StringUtil {
    public static String arrayToString(String[] strings){

        if(Objects.isNull(strings)){
            return null;
        }
        StringBuilder stringBuilder = new StringBuilder();
        boolean b = true;
        for (String s: strings) {
            if(b){
                stringBuilder.append(s);
                b = false;
            }else {
                stringBuilder.append(",");
                stringBuilder.append(s);
            }
        }
        return stringBuilder.toString();
    }
}
